<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			* {
				margin: 0;
				padding: 0;
			}
			body{
				perspective: 800px;
				/* 透视 */
			}
			.one {
				width: 200px;
				height: 200px;
				background-color: pink;
				background: url(../day03/img/10.jpg) no-repeat;
				background-size: 100% 100%;
				margin: 150px 300px;
				/* transform: translateZ(300px); */
				transition: all 2s;
				float: left;
			}
			.one:hover{
				/* transform: rotateX(360deg); */
				/* transform: rotateY(360deg); */
				transform: rotateZ(360deg);
			}
			.box{
				width: 200px;
				height: 200px;
				float: right;
				margin: 150px 140px;
				position: relative;
				transform-style: preserve-3d;
				/* 建立3d空间 */
				}
			.box .first{
				width: 200px;
				height: 200px;
				background-color: pink;
				position: absolute;
			}
			.box .second{
				width: 200px;
				height: 200px;
				background-color: blue;
				position: absolute;
				transform: rotateX(60deg);
			}
			.box .third{
				width: 200px;
				height: 200px;
				background-color: green;
				position: absolute;
				transform: rotateX(120deg);
			}
			.box:hover{
				transform: rotateX(360deg);
				transition: all 2s;
			}
		</style>
	</head>
	<body>
		<div class="one"></div>
		<div class="box">
			<div class="first"></div>
			<div class="second"></div>
			<div class="third"></div>
		</div>
	</body>
</html>